package org.vaillant.todo

class Comment {

	String message
	String dateCreated
	
	static belongsTo = [tasks:Task]
	
    static constraints = {
		
		message(maxSize:500)
		tasks(nullable:true)
		dateCreated()

	   }

	static mapping = {
			sort dateCreated:'asc'
		}
	}
